
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<meta http-equiv="Pragma" content="no-cache"> 
<meta http-equiv="Cache-Control" content="no-cache"> 
<meta http-equiv="Expires" content="0"> 
<title>Echarts 图表设计器</title> 
<script src="js/jquery-3.3.1.min.js" type="text/javascript"></script>
<link href="css/login.css" type="text/css" rel="stylesheet"> 
<link rel="shortcut icon" href="img/chart.ico">
<script>
	function doLogin() {
		$.ajax({
			type: 'POST',
			url: "../userlogin/store",
			data: {
				userLoginName:$('#username').val(),
				userLoginPassword:$('#password').val()
			},
			success: function(data,status) {
				if (data.success) {
					window.location="../app/edit"
				} else {
					alert(data.message)
				}
				
			}
		});
	}
</script>
</head> 
<body> 

<div class="login">
    <div class="message">Echarts 图表设计器</div>
    <div id="darkbannerwrap"></div>
    
    <form method="post">
		<input name="action" value="login" type="hidden">
		<input name="username" id="username" placeholder="用户名" required="" type="text">
		<hr class="hr15">
		<input name="password" id="password" placeholder="密码" required="" type="password">
		<hr class="hr15">
		<input value="登录" style="width:100%;" type="button" onclick="doLogin()">
		<hr class="hr20">
		<!-- 帮助 <a onClick="alert('请联系管理员')">忘记密码</a> -->
	</form>

	
</div>


</body>
</html>